<template>
  <!-- <view class="min-h-screen bg-gray-50 pb-8">
    <healthCard />
    <draw />
    <cir />
    <part1 />
    <part2 />
    <part3 />
    <part4 />
    <part5 :hasPrice="false" />
    <record />
  </view> -->
  <web-view :src="src"></web-view>
</template>

<script setup lang="ts">
import Taro from '@tarojs/taro'
import part01 from './components/part01.vue'
import part1 from './components/part1.vue'
import part2 from './components/part2.vue'
import part3 from './components/part3.vue'
import part4 from './components/part4.vue'
import draw from './components/draw.vue'
// import role from './components/role.vue'
import cir from './components/cir.vue'

import healthCard from '@/pages/index/components/healthCard.vue'
import part5 from '@/package/goodsdetail/part5.vue'
import record from './record.vue'
import { ref, onMounted } from 'vue'
import { useHealthStore } from '@/store/modules/health'
import { localStg } from '@/utils'
import { useHospitalStore } from '@/store'
const healthStore = useHealthStore()
const hospitalStore = useHospitalStore()
const orgCode = hospitalStore.defaultHospital.sysOrgCode

const token = localStg.get('token')
const openid = localStg.get('openid')
const curFamily = localStg.get('curFamily')
const src = ref(`https://anfine.huasun-healthcare.com/h5/index.html?orgCode=${orgCode}&platform=kehu&idcard=${curFamily.idcard}&phone=${curFamily.phone}&token=${token}&openid=${openid}#/pages/health/index`)
console.log(src.value, curFamily)
// onMounted(async () => {
//   // await healthStore.getHealthId()
//   // await healthStore.getHealthRecord()
// })

</script>


